<template>
  <dialog-box
    :isDialog="false"
    ref="myDialog"
    :showFooter="true"
    :isShowCacel="false"
    width="300px"
    sureName="保存"
    @close="close"
    @sureHandle="sureHandle"
    :isFooterSlot="true"
    title="解压密码"
  >
    <template v-slot:dialogMain>
      <div class="main-box">
        <div>{{ state.pwdVal || '' }}</div>
      </div>
    </template>
  </dialog-box>
</template>

<script setup lang="ts">
import dialogBox from "@/components/dialog-box/index.vue";
import { onMounted, computed, reactive, toRefs, ref } from "vue";
import type { ComponentSize, FormInstance, FormRules } from "element-plus";
const myDialog = ref(null);

let state = reactive({
  pwdVal: '2090'
});
// 定义完成后，用defineExpose()暴露给父组件
const open = () => {
  myDialog.value.handleOpen();
};
const close = () => {
  myDialog.value.handleClose();
};
const sureHandle = () => {
  // submitForm();
};
defineExpose({
  open,
  close,
});

</script>

<style lang="scss" scoped>
.main-box{
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #333333;
}
</style>
